package com.yh.correct.model;

import java.sql.Timestamp;

/**
 * 系统日志类
 * @author Administrator
 *
 */
public class SysLog {
	/**
	 * 主键id
	 */
	private int id;
	/**
	 * 登陆用户名
	 */
	private String username;
	/**
	 * 客户端ip
	 */
	private String ip;
	/**
	 * 客户端mac地址
	 */
	private String mac;
	/**
	 * 访问url
	 */
	private String url;
	/**
	 * 访问方式
	 */
	private String type;
	/**
	 * 执行类名
	 */
	private String classname;
	/**
	 * 执行方法
	 */
	private String method;
	/**
	 * 用时
	 */
	private int time;
	/**
	 * 操作时间
	 */
	private Timestamp createtime;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getMac() {
		return mac;
	}
	public void setMac(String mac) {
		this.mac = mac;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getClassname() {
		return classname;
	}
	public void setClassname(String classname) {
		this.classname = classname;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	
	public int getTime() {
		return time;
	}
	public void setTime(int time) {
		this.time = time;
	}
	public Timestamp getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}
	@Override
	public String toString() {
		return "SysLog [id=" + id + ", username=" + username + ", ip=" + ip + ", mac=" + mac + ", url=" + url
				+ ", type=" + type + ", classname=" + classname + ", method=" + method + ", time=" + time
				+ ", createtime=" + createtime + "]";
	}
	
}
